package cn.broadsense.biz.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * @author lijian
 * @description
 * @date 2024年09月10日 上午11:23
 */
@ApiModel(value = "标签类型")
@Data
public class TypeVo implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("类型名称")
    @NotBlank(message = "类型名称不能为空")
    @Size(max = 64, message = "类型名称长度不能超过64个字符")
    private String name;

    @ApiModelProperty("类型说明")
    @Size(max = 500, message = "类型说明长度不能超过500个字符")
    private String remark;

    @ApiModelProperty("父节点Id")
    private Integer parentId;
}
